import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);

export default new Router({
    routes: [
        {
            path: '/',
            redirect: '/dashboard'
        },
        {
            path: '/',
            component: () => import('../components/common/Home.vue'),
            meta: { title: '' },
            children: [
                {
                    path: '/dashboard',
                    component: () => import('../components/page/Dashboard.vue'),
                    meta: { title: '控制台' }
                },
				{
				    path: '/config',
				    component: () => import('../components/page/Config.vue'),
				    meta: { title: '系统管理' }
				},
				{
				    path: '/banner',
				    component: () => import('../components/page/Banner.vue'),
				    meta: { title: '轮播设置' }
				},
				{
				    path: '/hamlet',
				    component: () => import('../components/page/Hamlet.vue'),
				    meta: { title: '村级管理' }
				},
				{
				    path: '/homelist',
				    component: () => import('../components/page/Homelist.vue'),
				    meta: { title: '户档信息' }
				},
				{
				    path: '/meeting',
				    component: () => import('../components/page/Meeting.vue'),
				    meta: { title: '会议信息' }
				},
				{
				    path: '/house',
				    component: () => import('../components/page/House.vue'),
				    meta: { title: '住房情况' }
				},
				{
				    path: '/user',
				    component: () => import('../components/page/User.vue'),
				    meta: { title: '个人信息' }
				},
				{
				    path: '/notice',
				    component: () => import('../components/page/Notice.vue'),
				    meta: { title: '公告信息' }
				},
				{
				    path: '/activity',
				    component: () => import('../components/page/Activity.vue'),
				    meta: { title: '活动信息' }
				},
				{
				    path: '/Worker',
				    component: () => import('../components/page/Worker.vue'),
				    meta: { title: '务工信息' }
				},
				{
				    path: '/civilization',
				    component: () => import('../components/page/Civilization.vue'),
				    meta: { title: '家情家事' }
				},
				{
				    path: '/pension',
				    component: () => import('../components/page/Pension.vue'),
				    meta: { title: '社保信息' }
				},
				{
				    path: '/job',
				    component: () => import('../components/page/Job.vue'),
				    meta: { title: '人力资源' }
				},
				{
				    path: '/staychildren',
				    component: () => import('../components/page/Staychildren.vue'),
				    meta: { title: '留守儿童' }
				},
				{
				    path: '/stayelder',
				    component: () => import('../components/page/Stayelder.vue'),
				    meta: { title: '留守老人' }
				},
				{
				    path: '/information',
				    component: () => import('../components/page/Information.vue'),
				    meta: { title: '时事资讯' }
				},
				{
				    path: '/family',
				    component: () => import('../components/page/Family.vue'),
				    meta: { title: '重点家庭' }
				},
				{
				    path: '/person',
				    component: () => import('../components/page/Person.vue'),
				    meta: { title: '重点个人' }
				},
				{
				    path: '/indexnav',
				    component: () => import('../components/page/Indexnav.vue'),
				    meta: { title: '首页导航' }
				},
				{
				    path: '/homedissolve',
				    component: () => import('../components/page/homedissolve.vue'),
				    meta: { title: '家庭纠纷' }
				},
				{
				    path: '/societydissolve',
				    component: () => import('../components/page/societydissolve.vue'),
				    meta: { title: '社会纠纷' }
				},
				{
				    path: '/pensiontotal',
				    component: () => import('../components/page/PensionTotal.vue'),
				    meta: { title: '社保统计' }
				},
				{
				    path: '/usertotal',
				    component: () => import('../components/page/UserTotal.vue'),
				    meta: { title: '个人统计' }
				},
				{
				    path: '/hamlettotal',
				    component: () => import('../components/page/HamletTotal.vue'),
				    meta: { title: '户档统计' }
				},
				{
				    path: '/familylog',
				    component: () => import('../components/page/FamilyLog.vue'),
				    meta: { title: '走访记录' }
				},
				{
				    path: '/check',
				    component: () => import('../components/page/Check.vue'),
				    meta: { title: '风险排查' }
				},
				{
				    path: '/housetotal',
				    component: () => import('../components/page/HouseTotal.vue'),
				    meta: { title: '住房统计' }
				},
				{
				    path: '/log',
				    component: () => import('../components/page/Log.vue'),
				    meta: { title: '操作日志' }
				},
				{
				    path: '/member',
				    component: () => import('../components/page/Member.vue'),
				    meta: { title: '操作日志' }
				},
				{
				    path: '/task',
				    component: () => import('../components/page/Task.vue'),
				    meta: { title: '审核任务' }
				}
            ]
        },
        {
            path: '/login',
            component: () => import('../components/page/Login.vue'),
            meta: { title: '登录' }
        },
        {
            path: '*',
            redirect: '/404'
        }
    ]
});
 